package com.vates.login.webapp.beans;

import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.vates.login.model.User;
import com.vates.login.services.UserService;

@ManagedBean
@SessionScoped
@Component
public class UserListBean {
	
	@Autowired
	private UserService userService;
	
	public List<User> users = new ArrayList<User>();
	
	
	
	public List<User> getUsers() {
		return userService.getAll();
	}
	

	
}
